package com.wn.search.service

import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.wn.common.constant.SEARCH_SERVICE_SEARCH
import com.wn.common.service.ISearchService
import com.wn.search.SearchActivity

/**
 * @Author: wn
 * @Date: 2024/12/10 16:43
 * @Description: ISearchService 接口的具体实现
 */
@Route(path = SEARCH_SERVICE_SEARCH)
class SearchService : ISearchService {
  /**
   * 跳转 搜索页
   * @param context
   */
  override fun toSearch(context: Context) {
    SearchActivity.start(context)
  }

  /**
   * 清除 搜索历史缓存
   */
  override fun clearSearchHistoryCache() {

  }

  override fun init(context: Context?) {}
}